package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 减按征收类型
 */
@Getter
@AllArgsConstructor
public enum JazslxEnum {

    JAZSLX_54("54", "54"),

    JAZSLX_55("55", "55");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        JazslxEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }
}
